Code examples which should be useful for the dilstats team.