Change API method signature to use (action, options)