Implemented attempts and threshold into CFG