Add detection of embedded mode (no need to configClass)