Adjustments to application.py