First pass of finding common ancestors