JJ/HM: For safety stop after 254 loops