Use itertools across the board.