Added exit_program function