Added delay option, better error handling, and fixed failing error based extractions