Bringing the sample in line with the adjustments to the SDK