Refining the deployment script