Added debug output to logs