Added logging and the beginning of SFTP