Add Git commit monitor, refactor a little.