Simplified code within server iterator.