Small speed improvement by passing opts as pointer