Changed log to console.log, to remove the dependency