Updated the recursive switch.