Timer loop fixes. A patch from Juha Räsänen.