Fixed QueryCards method