More work on the deploy script