Added errors attribute, and accessor function