Possibly better way of ignoring modified events caused by applying patches.