(IN PROGRESS) New XSnippet API