Trying to get the flicker to stop