Filter feature

I started working on a filter feature. It's not 100% complete, but it replaces psychedelys's code, so this way he won't work on abundant code again