Moved the getPrivateAddress