separate out maxLoops for limiting number of retrains