Moving build code to b_m from RR