Added new code for 'Add text' mechanism