Optimized tracking functionality.