Hmm, perhaps someone else can confirm or not, but doesn't G and M commands need to be on different lines otherwise only the last will be performed? Not 100% on this though... Been a while since I did stuff like that and my controller was old even then