Fixed S
Made set_rho available