Turning a threat into opportunity