Extended functins for file transfer