Add prefix change support for mode results.

This probably deserves some further testing :)