New postprocessing function
Updated memory usage recording