Code snippets for regions