Altered to add the override field of max length for text field