Using the switch as querier