State selection works