Added type to custom_field