Moved everything into Main.c