Updating similarities.