Updated the LengthComparator