Fixed problem with example code, thanks @frank_zabel!