Create main_file