Made a change to get_to_addr() based on a comment from sdehaan's review that I overlooked earlier.