Update constructor signature to match the API.