Done serialize but there is a bug that needs to be tracked.
Fixed bug. Serialize seems to work well.