Added fix for detecting media mode via global options.