And yes, CNT=1 should be added in the beginning, or absolutely unexpected behavior will be generated (just tested)