Removing unecessary while loop. We're not writing to a file.