Add initial mock-up of purity analysis.