Collect alternatives and elements.

Signed-off-by: Etienne M. Gagnon <egagnon@j-meg.com>