Updated the advanced example.