Adding pre-commit hook.