Example updated to support new interfaces.