Made it output to a file