Add quick and dirty serialization.