Fix warnings and analyzer suggestions. Fix the Media files.