Persistent selections

Closes #131.