Changed the file to print multiple times