Implement checkDirty() and resetDirty()