Add a method to parse the cost info