Added diagraph checking in the hope of making the cracker more accurate