Adopted for RoR