Added support for pickle output.