This is actually better without the count check.
Free the old list.
Draw lines properly.
Buffer grown too much.