Update for MPS buildscript changes and fix for magnet module crash. Closes issue #3.