Fannie Mae Agrees to Demands of Regulator