Media script now tamed with a few fixes.