Added informative error messages