REF: Separate preprocessing from analyze.