Tweak a few comments per suggestions by @owainga.
Only use a single cast for inputPriority.

Suggested by @owainga.
Set header directly for more consistent style.

Suggested by @owainga.