Flask conversion