Support for not only Legion PE

Added support to work without Legion PE configs