Added device detection and production mode init parameters.