Adding Script serialization