Added debug logger