Started support for remembering the selected options.

References #706.