More work on Flask