Changed query method.
Merge pull request #86 from DariusIII/dev

Changed query method.