Removed unnecessary outer loop in LocalOpts