Trying to get receiving into a file working. Still broken but I don't wanna think about it right now