Moved the Avisynth detected code into a background thread.