Now includes the file to be passed back as an argument, or if it fails, passes back the error message