Text control function added.