Reimplementing getFieldType