Added inState helper