Properly check for content changes