Added code to upgrade existing projects