Add hooks as taken from SVN