Fix 'Deprecated' warning in full example code too