Modified slot_set_rec to return value.