Convert to a Flask Application