Fixed issue where accessing options instead of opts.