Filled in more app.py functions