Remove threads dependency