Added support for switching between foundation and semantic.