Reorganize worker code to accept a postprocess routine