Working on bot logic