Make pirate fully serializable