Added insert functionality