Now the main activity saves the state between activities, and all
constants are correct now.