Moves global variables into application object