Added records for error handling and result