Added yield in read loop to prevent pegging the processor