Added a generic query method.