How Companies Keep Out of Trouble