Some changes in host.c and leave system logic in key_value_store.c by rajath