Add ability to update wordCost