First commit of AutoCorrStage and AutoCorrArrayStage.