Added Media type functionality