Switch to directly defining __iter__ for workers