only the part where the controller was switching off was removed. The part where we set the current of the controller at the time of overshooting still remains. Also, the controller is designed to remain switched off in case the current overshoots. So, the reenabling part remains as well.