Change to setTimeout from setInterval