Add thread to build