Also added r_{in,out} switch for all three scenarios