Added support for excluding modules.