Moved yields to prevent pegging the processor