Added an advanced example of discovery