Change flush to reset