Various Groovy snippets