Made code layout of main.c fit into project.