Adding helpers and updating app.py