Fixed File paths so only one file is created