A Characterization of Depth 2 Subfactors of II1 Factors