Added serialize class to act as an interface.