Question about generating longer gates