RRL implementation

Please merge RRL implementation.