Add methods that compare notifications and mark elements as known.