Added setInterval function.