Redid the performance function