Loop reading data