The second oil crisis of 1979 had just ended when the Government of Sri Lanka decided in 1982 to place energy efficiency and demand management as the top priority, with the energy ministry functioning directly under the President.