Added HandlerThread to parallelize handlers.