Refractored mediaFile section