Improved deployment script.