[Magic-SD] Code cleanup
Merge remote-tracking branch 'origin/master'