Implemented State in core api.