removed some console.logs and added a timer.