Added console.log to the function.