Added serialize() in from history.