Added extra feature to split between pattern number AND learning rule (instead of just either or) in the failure analysis tool script.