Added text insert functionality.