Updated logging message for retrying.
Added profiling feature.
Improved cpu utilization.