Migrated the library to API v2