Fix setTimeout and remove console.log from a couple places.