Added console.log's and the "for" loop.