Renamed function compare_versions and made it available to the policy engine