Added a wrapper function for sending the file