Various script snippets and samples