Useful snippets for Macaw