Update code sample.