Updating similarities file.