Added diff parsing code.