Added a simple debug feature to detect lost lines.