Modified aggregator sample, added chain sample.