Change MD engine and rm heading detect