Adding additional verbose logging for debug mode.