Changes for rebalance listeners and offset commit