Initial steps towards getting replication working.