Added exclude feature

I needed this feature for my project.
Please merge if you also think it useful.