Improved postprocessing scripts