Added Average-Cost method.