Added script checking