Added generator to flipflop