Weekend commit. Initial harness for two-pass encoding and populating