Need an efficient way of implementing pre-specified nested structures, like in ((1 of these) AND (this)) OR (2 of these).