Reverted changes to filter for end_timer.py, removed Query.all call for better performance