Refactor addPerfDatum per suggestion from @christian-marie