Added snippets. Worked out that spaces instead of tabs was causing issues.