Added Switching, only works for length 3 and 4.