Updated code for Performance Test 3