Almost done, just need to update the readaddresses function.