Added optional settings and made only ext module