Make the set_control_from_XXXXX functions global