Fixing the example to use element config