WIP
Initial log replication; TODO cleanup