Added file generation for when file not found