Made debug output actually optional