Added script function