Split the program into modules.