Moved program execution to the ProgramTask class.