Added serialization of nebula (caching)