What about splitting the setting of the globals into various methods indicating their purposes?