Initial implementation, using the snippets plugin...

...But still running into bugs :(