Assorted snippets of code for later use