Add convenience functions to the State class