Updated API to latest version