Converted similarity to int.