Add basic change detection

There may be edge cases missing, but this is at least a starting point.
2 files changed