Added code to investigate timing/performance.