my bad, didnt change counter's name inside the loop
some settings ajustments for dealing with not answering devices
some more adjustments