Implement switch_side()