Add loop for slave master to run through.
Will only run through the loop when all other processes are done. Thus, this particular task cannot communicate with the master process until all of its threads are done. Todo: make all threads communicate with the master process.