Use setInterval to do the job