Much improved "flicker" script