Add display_fn field attribute