Miscellaneous script utilities