Switch to use Result wrapper.