Add flask interface