Added pre/post commit hooks.