Added md logic.