Updated Snippets to have ctx