Major disaster averted