Added laststate ivar to avoid property error prior to clang 3.