add/Added debug mode