Simplify main loop for inspecting dashes.