Removed the deprecation warning for .query