Update sample to match current usage.