Prep if statement for mode tracking