Replaced log_event with console.info