`opts` is not a global variable. I'm not sure if this will work, since you're not assigning the result to any variable.