Added proper calculation of BRP and SR from SS3 output