Removed erroneous console.log, which caused script crashes.