Flask setup