Doesn't handle the case when there's no hold media defined. Add a clause to handle 'undefined'; just return 'ok'.