Change the back tracking loop