Added support for custom material id's / names in record-durations.