Updated Mac example per API change