Still issues with types. Snippets added.