Change the api to use trailing arguments.