Improvements made to media redirect scripts.