Modified the version query