Added the ability to insert elements.