Moving functions into MediaBed class