Added pull replication functionality.