Added program data generation to RunProgram. Still a work in progress.