Created QueryHandler that should work with form code.