Works on Mega, works on Uno with tweaks.