Sort out horrors of serialization.
Use limits rather than optargs for write_ts.