Added some sanitizations, optimizations and fixed one bug (notices when empty exclusion list given)