Adjusted main.py