Added methods to batch emit and deserialize owned pointers. This allows