main.py Added user interface support