Updated Compute function.