MagMaster source code