Upgrade script for 3.13