Adding support for priority, weight, and target.