Some flask reference code