Update flex sample.