Added the pre-commit hook.