Update cost methods to deal effectively with links derivation and reversion.