Made topLevelMediaType static & simplified