R1 Bed setting code