Upgrade of the code