Added rudimentary file dialog functionality.