Main program logic source code.