Implemented iterateMedia