Made examples match current API