Add support for custom pickler