Added GetTextFieldsFunction.