Added Compute cost for multiple variables.