Added debug log to find the code path executed.