Corrected variable declarations for timing data collection