Boilerplate code for Flask