Added the Pickle interface.