Added a method to create a new query more easily.