Added document comparator