Split program into subprogramns.