Finish the implementation started here: https://github.com/galenseilis/SimDist/blob/0321ecc23853d1c74b1dda55fcf14b42c6ab8a9b/src/simdist/core.py#L311