Added check for min module size filtering out all modules