Added flush to prevent blinking.