For replicating the Perfy index