Sectioned out the code, preceding work on file sending.