Updated serialization, added script serializing