Add replication to modules