Added FTPState. Could be modified as the need arises. Passing ftpState around rather than the handle.