Port flicker mode from old code.