Some fixes to penalties and breaking.
Useful debugging routine.