Runs to completeion for given config.
Has memory leak.