updated Main to use Threads and CustomArbitrator