Moved console.log to settings.debug so its possible to turn the thing off