Added Main thread and simple bot model