Add functions for logging perf