Added debug flag and returned +statistics+ for Algorithm::run!