Added the Query private method.