I figured it out now. All that remains is splice.