Adding mapRights functions