Really fix hoes this time.
Add mg support
Merge pull request #5 from Novatux/master

Fix hoes and add mg support