Fixed: 'output_options' is now a local variable