Upgrading version and updating relations.