Added -d switch for only deploying.