Add error-catching, with a method to retrieve them