Added a scoring feature in the R31-JP code.