This adds a new function to create a preparsing input thread, and runs preparsing within a dedicated thread.