Further tweaking to deploy script.