RAS implementation (contributes to #22)