Updated code to work with latest version of API, upped version