Adding cassandra flushing