Rebuild the output