Add profiling for analytics