Add pickle support.