Various script utilities