Less redundancy in program_wrapper.cpp.