Added ProgramManager, fixed bug in Program