Thread v2(move 'frameCnt' variable)