Random snippets of code that need a home