Added queryLatestVersion.