Added insert functionality.