Fixed bug that was overwriting file each time