Remove threads usage