Better media type detection.