Added delete and rebalance functionality