Added passing of global_work_offset to run function.