Changed example to work with actor v5.