Move a few important variables up above the section where we decide what
mode and jump to that subroutine