Added debug handlers everywhere.