Minimized the processing time of the InExSwitch algorithm.