A few snippets which I use