Corrected some errors and added new console message.