backports: Allow setting a custom priority.