Converted the sample index to PSR.