Inefficient loop fix

Changed ticker function. Rest function on non-tick. Changed from 30-40%
CPU to 0.5-1% CPU.