Implement Riti protocol