Different example of how to move the code to ToxFriend.