Implemented StateStack, items are next