Refactor. 'Query' without argument will query all tunnels.