Replacing the LoopCont library