Change deploy script to use a switch instead