Implented RoR, fixed bugs.