Make use of polymorphic record.