Error handling and edge cases

Handling errors when working with the DRN