Updating FTP code to work with current version of GUI code