Added pickling.