Added debug logs to track checks and results