Removed code from linkCostChangeHandler. Added debug prints to update
method.