Do version checks in one place