Use flipflop instead of flup