Using costs for decision-making