Add a check for allowing downgrades