Finished implementation of the filter enable/disable function. It's still untested, so something might be broken!