Changed the query in postprocess_threaded.py