Started writing postprocessing routine