Replaced State with use of boolean primitives.