Changed example to fit new interface