Trying with sorted lists.