Added API for state