Cookie support

It now tracks the last seen item so you don't have to see the same
entries again and again.