Make current_program a program_t type. It makes the code easier to maintain.