Began implementing replication. Doesn't work yet.