Added basic architecture for embedding and standalone.