Added serialize methodes