Replace setInterval() with setTimeout() to enable interval updating while running