Added debug log to monitor internal status