Added query plugin hooks