New version of main program.