The changes are as follows: * Moved the code around to fit with the ordering system * Added a function to get available cpu cores * Renamed variables with _ in front of them * Added mutexes and lock guards for the getters and setters of the max concurrency and result variables * Made max concurrency dynamic by returning 0 when the operation is finished