Added a proper FTP function, still not working though