Added script to clean up bad media