Use state name in get_state()