Added a separate low priority thread for prdiction