Debug mode processing sketch