Adding method to get media id