Fix bugs; deprecates file chooser.