Moved main() to main.c