Added ls_r function.