Which of the following are the major tasks of risk management?