Added PAI and Accuracy calculation