Don't iterate over every line when reseting

[#19]