Alter the algo to exit at relavent points