Began adding code to handle insertions