Adding support for text inputs