Added handling for zero values on cost to BT