How the program works.