Add setPriority.