Made the flavors mechanism extensible.