Updated git hook with the required helper routines