Changed ai_bar.py