Added replication as optional