Updated example to new interface.