Adapted to new MediaWorkbench library.