Master/Worker implementation changed. Fully working