Added Device detection scripts (mdetect)