Receive is working. Need to make it write to a file.