Moved worker runner to separate file