Put read() into loop