Leo code snippets