Added switch to md