Added debug checkbox