Update API to use new language features.