Added setValueR function