Working with serialization.