Refactored Ecost semantics to fixed/var cost.