Made error messages more specific.