Modified main.py