New version of deployment script