Make workers loop properly.