Added debug alerts to error() and success() callbacks for tracing.