Add version query check.