Added script functions