Add computeRs() function and use from InitialStateComputer.