Initial Flask conversion