setInterval optimaize.