Started work on simplifying and consolidating filechooser dialog code.