Fixed to use correct query options. Damn untyped language.