Added query support in IPA.