Added new transaction query types. Refactored Query class accordingly.