Added an example of the use of a custom collector.