Better pattern matching for media types.