How to Automate Risk Management