Beginning of rewrite in aid of multi-process decoding.