Improved deploy script.