Removed extra code from worker