Implement support for state checking.