Added Josh's postprocessing of data.