Implemented queryMore, added better handling of lambdas