Changed console.debug to console.log.