Improved the SDK sample.