Added handling in TP for unknown activity types, activities without durations.