Useful snippets.