ENH: Implement 'defect' management mechanism.