Turns this into a Flask app