Change function by using other version MagicalRecord