Move function declarations in main program outside of main() function!