Added new snippet and updated pre-commit hook.