Added switch to toggle continuous replication