Fixes threading scheduler issue with asynchronous processing