Improvment on file sending