Fix example, used outdated method.