Added debug feature.