Common utilities used by the SDK samples.