Added script detection