Rework of deployment script