changed setInterval to setTimeout.