I will give it a shot as soon as I have some time. Takes quite some fiddling.....Anyhow, I don't really think that this is a glitch, more a conflict in the macros. After the matrix is saved to eeprom, or even if you just uncomment the erase bedleveling, the stop switches are acting weird. I guess we will get to the bottom of this sometime. Thanks for all the help.