Pull out sections into attributes