Split program into modules