Prepare for switch