Added query initializer that sets params