Better commit check