Make `for` use real nested loops instead of `product`.