Make PM called by controller, passing in the mode.
Start work on changing PM format.