Text this: Performance Improvements of a Permanent Magnet Synchronous Machine via Functional Model Predictive Control