MGFX Improvements

A few simple improvements to MGFX.