Update main_template.c