fiddled with keyisarray index a bit and modified example to include perf all the time.