A first pass at a function to handle multiple insertions nicely.