Added comparator parameter

Added comparator parameter to ensure that the size searched for in the filter is actually the size that is returned.