Added wildcard to queries