Add commented log statements for profiling.