Added serialization of results