Corrected fifo-read loop to perserve cpu cycles.