Moved filter out of code to text file