Need to serialize the rids before adding them.