Moved private methods
Added insert text command