Completed function with console.log with variables.