Add FTP logic, needs testing