Added hook to generate discriminators on commit