Added a console.log to the function.