Flask integration