Some relevant logging and timers added.