Begin to implement handler for entity.state