Now is possible to add a user defined extra term in the Cost matrix