Get the initial state set up correctly.