Improve run.py for capable of multiple filterings