SMP similarity script