First add the garlic, then onions, then the corned beef.