Added threading backend support.