Got rid of some code in the main recv_files() loop by calling the