NLS as a module