And saves Dundee from going under