Use setInterval instead of setTimer