Misc scripting tools