Add field type and field detection mechanism