Added file sending function