Using all distance measures.