Redefined switch function to not use stash since they are not branch specific