Working priority donation. Passes tests.