Updated to add D term