Added rr function
v0.004