Created the state stack