Moved file creation from main.c