Detect changes.