Added sequence distance func.