Made it so it inputs into a file.