Update replication.rb