Adding error messages for convenience