Update encoded to new API method