Added update mode for FTP, but significant refactoring to be done