Moves functionality from rrr