Added type to the Media object.