Improvements to the mechanical power code.