Added the console message to the code.