Implemented an m-branch function. I feel this would make more sense as a macro, but I don't know how to do those.