Added code to insert workers