Added option to exclude certain modules.