Added more functionality to State.