New rsbeween implementation. Much shorter and easier, and works well