Moved the ThreadInvoker initialization to the Construct method.