Added timers for performance measurement