Working version of the deploy script