Actually ignore lines that ought to be ignored
Add debug output for the calculation