Added insert text function