Tinkering with error-handling code.