Changed from for line in file to while data read