Modified app.py to implement timestamps