Added some error messages