Adds submit_workers common code