File sending roughly functional