Changed aggregate mode for cost