Merged part of runAddress() with selectFile()