Added delete line from cursor entries.

Also re-ordered some stuff.