Use Future instead of Thread.