Changed file send code