Add function snippets