Excluding modules from the scanning process