Added some error messages.