Adapted to save perfdata